package com.example.mybatis.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.mybatis.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface UserMapper extends BaseMapper<User> {
    List<User> getUsers();
    int insertUser(User user);
    int updateUser(@Param("password") String password,@Param("id") int id);
}
